home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
YERK
/
SUPPLEME
/
MY_STUFF
/
TIMEMANA.GER
< prev
next >
Wrap
Text File
|
1991-04-29
|
1KB
|
46 lines
create Tinstall popA0 " InsTime" asmcall next,
create Tremove popA0 " rmvTime" asmcall next,
create Tprime popD0 popA0 " primeTime" asmcall next,
:CLASS time <super object
var qlink
int qtype
var tmAddr
int tmCount
var tmDelay
:M install: ( cfaProc -- errcode) +base >body put: tmAddr
abs: self Tinstall ;M
:M remove: ( --errcode) abs: self Tremove ;M
:M setDelay: put: tmDelay ;M
:M go: abs: self get: tmDelay Tprime ;M
:M classinit: 1 put: qtype ;M
;CLASS
\ procedure is to install a procWord, set the delay when the procWord should execute,
\ and when you want to start timing, say schedule:
\ When you're completely done, just remove:
\ schedule: might change to time: or something. The classname might also change.
rect suz
100 100 200 200 put: suz
time painter time clearer
:proc paintit ( pushPort set: fwind ) paint: suz ( popPort) ;proc
:proc clearit ( pushPort set: fwind ) set: fwind clear: suz draw: suz ( popPort) ;proc
4000 setdelay: painter
5000 setdelay: clearer
'c paintit install: painter
'c clearit install: clearer
: go go: painter go: clearer ;